package com.example.demo1104.demo1;

import java.util.function.BiPredicate;
import java.util.function.Predicate;

public class Test {
    public static void main(String[] args) {
        Predicate<String> predicate=t->t.length()>6;
        boolean hahaha = predicate.test("hahahaha");
        System.out.println("hahaha = " + hahaha);
        BiPredicate<String,String> biPredicate=(t,u)->t.equals(u);
        boolean test = biPredicate.test("hahah", "hahah");
        System.out.println("test = " + test);
    }
}
